// pages/productComment/productComment.js
Component({
  /**
   * 组件的属性列表
   */
  properties: {

  },

  /**
   * 组件的初始数据
   */
  data: {
    pinlun: [
      {
        tx: '../../resource/image/jd2.jpg',
        name: '风吹麦浪', dj: "二级会员",
        time: "2018-06-06",
        txt: "今刚收到货，油质不错，金黄金黄的，买的非转基因的玉米油，价格还好，不算太贵，值得信赖，很好很棒！",
        star: 4,
        product: '金龙鱼油5L',
        reply: '感谢亲对我们的大力支持！感谢亲对我们的大力支持！',
        imglist: [
          'http://img02.tooopen.com/images/20150928/tooopen_sy_143912755726.jpg',
          'http://img06.tooopen.com/images/20160818/tooopen_sy_175866434296.jpg',
          'http://img06.tooopen.com/images/20160818/tooopen_sy_175833047715.jpg',
          'http://img02.tooopen.com/images/20150928/tooopen_sy_143912755726.jpg',
          'http://img06.tooopen.com/images/20160818/tooopen_sy_175866434296.jpg',
          'http://img06.tooopen.com/images/20160818/tooopen_sy_175833047715.jpg'
        ]
      },
      {
        tx: '../../resource/image/jd1.jpg',
        name: '啦啦啦', dj: "四级会员",
        time: "2018-05-06",
        txt: "很不错的一次网购",
        star: 1,
        product: '金龙鱼油50t',
        reply: '',
        imglist: [
          'http://img02.tooopen.com/images/20150928/tooopen_sy_143912755726.jpg'
        ]
      }
    ]
  },

  /**
   * 组件的方法列表
   */
  methods: {
    imglook: function (e) {
      var aa = e.target.dataset.atlasth;
      var bb = e.target.dataset.src;
      wx.previewImage({
        current: bb,
        urls: aa
      })
    }
  }
})
